package com.lesama.integer;

public class IntegerMethodDemo {
    /*

        Integer常用方法：
            public static String toBinaryString(int i): 转二进制
            public static String toOctalString(int i): 转八进制
            public static String toHexString(int i): 转十六进制
            public static int parseInt(String s): 将数字字符串转换为数字

     */
    public static void main(String[] args) {
        int num = 114;
        System.out.println(Integer.toBinaryString(num));
        System.out.println(Integer.toOctalString(num));
        System.out.println(Integer.toHexString(num));
        System.out.println(Integer.parseInt("514"));
    }
}
